using com.ruovea.gogs.entity;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;

namespace GogsWeb.Api.Controllers
{
    /// <summary>
    /// TeamRepo
    /// </summary>
    public class TeamRepoController : BaseController<TeamRepoEntity>
    {
        public override async Task<IActionResult> Put([FromBody] TeamRepoEntity value)
        {
            if(value.Id==2)
            return await Task.Run(() => { return Fail("2"); });

            return await base.Put(value); 
        }
    }
}
